import request from '@/utils/request'

export function listOwnPayment() {
  return request({
    url: "/system/payment/listOwnPayment",
    method: "post"
  });
}

// 查询费用表列表
export function listPayment(query) {
  return request({
    url: '/system/payment/list',
    method: 'get',
    params: query
  })
}

// 查询费用表详细
export function getPayment(id) {
  return request({
    url: '/system/payment/' + id,
    method: 'get'
  })
}

// 新增费用表
export function addPayment(data) {
  return request({
    url: '/system/payment',
    method: 'post',
    data: data
  })
}

// 修改费用表
export function updatePayment(data) {
  return request({
    url: '/system/payment/update',
    method: 'post',
    data: data
  })
}

// 删除费用表
export function delPayment(id) {
  return request({
    url: '/system/payment/delete/' + id,
    method: 'post'
  })
}
